package com.slkj.shilixiaoyuanapp.net.down;

import java.io.File;

/**
 * Created  on 2018-08-29
 *
 * @author 唐开阔
 * @describe
 */
public class DownloadInfo {
    public long totalSize;//下载文件总大小
    public long currentSize;//当前下载大小
    public File file;
    public int getPercentage(){

        return (int) (100 * ((double)currentSize / (double)totalSize));
    }
}
